﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PCMSofCC.BLL;

namespace PCMSofCC.Admin
{
    public partial class AddScoreChart : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Submit_Click(object sender, EventArgs e)
        {
            List<int> entris = new List<int>();
            foreach (GridViewRow row in GridView1.Rows)
            {
                CheckBox cbx=(CheckBox)row.FindControl("CheckBox1");
                if (cbx.Checked)
                {
                    entris.Add((int)GridView1.DataKeys[row.RowIndex].Value);
                }
            }
            Charts.AddChart(tbxName.Text, entris);
        }
    }
}
